package com.txts.road.app.event.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.txts.road.app.event.model.entity.EventAnnouncementEntity;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.txts.road.app.event.model.query.EventAnnouncementQuery;
import com.txts.road.app.event.model.vo.EventAnnouncementVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 赛事公告Mapper接口
 *
 * @author baoyr
 * @since 2025-07-17 10:47
 */
@Mapper
public interface EventAnnouncementMapper extends BaseMapper<EventAnnouncementEntity> {

    /**
     * 获取赛事公告分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<EventAnnouncementVO>} 赛事公告分页列表
     */
    Page<EventAnnouncementVO> getEventAnnouncementPage(Page<EventAnnouncementVO> page, EventAnnouncementQuery queryParams);

}
